/*
 * @Author: luyb luyb@xunzhaotech.com
 * @Date: 2022-09-11 11:38:58
 * @LastEditors: xunzhaotech
 * @LastEditTime: 2024-04-20 12:18:08
 * @FilePath: \micro-design-docs\docs\.vitepress\config.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// import { demoBlockPlugin } from 'vitepress-theme-demoblock'
 import { defineConfig } from 'vitepress'
 import { version } from '../../package.json'

const config = defineConfig({
  base: '/micro-design-admin/',
  lang: 'en-US',
  title: 'MicroDesign Admin',
  description: 'Vite & Vue powered static site generator.',

  lastUpdated: true,
  cleanUrls: 'without-subfolders',
  themeConfig: {
    siteTitle: "MicroDesign Admin",
    logo: "/logo.png",
    // 展示搜索框
    // algolia: {
    //   appKey: '12122121212',
    //   indexName: '',
    //   searchParameters: {
    //     faeFilters: ['tags:guide,api']
    //   }
    // },
    nav: [
        { text: '首页', link: '/guide/', activeMatch: '/guide/' },
        { text: '配置', link: '/configs/', activeMatch: '/configs/' },
        { text: '组件', link: '/pages/components/', activeMatch: '/pages/components/' },
        { text: '文档', link: 'https://microdesign.gitee.io/micro-design-docs/', activeMatch: '/pages/docs/' },
        { 
          text: '生态',
          items: [
            { text: 'Plugins', link: '/pages/plugins/', activeMatch: '/pages/plugins/' },
            { text: 'Theme', link: '/pages/theme/', activeMatch: '/pages/theme/' },
            { text: 'Templates', link: '/pages/templates/', activeMatch: '/pages/theme/' },
          ] 
        },
        { text: 'Q&A', link: '/pages/question/', activeMatch: '/pages/question/'},
        { text: '开源', link: '/pages/links/', activeMatch: '/pages/links/' },
        { text: '关于', link: '/pages/about/', activeMatch: '/pages/about/' },
        {text: version ,link: '/pages/logs/', activeMatch: '/pages/logs/'}
    ],
    sidebar: {
      '/guide/':[
        {
          text: '系统介绍',
          items: [
            { text: 'MicroDesign Admin', link: '/dist/modules' },
            { text: 'Why选我们?', link: '/dist/classes/index.MyClass' }
          ],
        },
        {
          text: '开始使用',
          items: [
            { text: '安装运行', link: '/dist/modules' },
            { text: '目录结构', link: '/dist/classes/index.MyClass' }
          ],
        },
        {
          text: '框架配置',
          items: [
            { text: '环境变量', link: '/dist/modules' },
            { text: '项目配置', link: '/dist/classes/index.MyClass' },
            { text: '组件配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '请求配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '菜单路由', link: '/dist/interfaces/index.MyInterface' },
            { text: '接口配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '国际化', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
        {
          text: '快速上手',
          items: [
            { text: '创建页面', link: '/dist/modules' },
            { text: '查询列表', link: '/dist/classes/index.MyClass' },
            { text: '表单录入', link: '/dist/interfaces/index.MyInterface' },
            { text: '创建图表', link: '/dist/interfaces/index.MyInterface' },
            { text: '精简开发', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
        {
          text: '权限配置',
          items: [
            { text: '固定权限', link: '/dist/modules' },
            { text: '动态权限', link: '/dist/classes/index.MyClass' },
            { text: '操作权限', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
        {
          text: '系统联调',
          items: [
            { text: '接口联调', link: '/dist/modules' },
            { text: 'mock', link: '/dist/classes/index.MyClass' },
          ],
        },
        {
          text: '构建部署',
          items: [
            { text: '构建', link: '/dist/modules' },
            { text: '部署', link: '/dist/classes/index.MyClass' },
          ],
        },
        {
          text: '功能列表',
          items: [
            { text: '用户管理', link: '/dist/modules' },
            { text: '角色管理', link: '/dist/classes/index.MyClass' },
            { text: '部门管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '岗位管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '菜单管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '字典管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '参数设置', link: '/dist/interfaces/index.MyInterface' },
            { text: '通知管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '日志管理', link: '/dist/interfaces/index.MyInterface' },
          ],
        }
      ],
      '/pages/docs/':[
        {
          text: '登录模块',
          items: []
        },
        {
          text: '系统管理',
          items: [
            { text: '用户管理', link: '/dist/modules' },
            { text: '角色管理', link: '/dist/classes/index.MyClass' },
            { text: '部门管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '岗位管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '菜单管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '字典管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '参数设置', link: '/dist/interfaces/index.MyInterface' },
            { text: '通知管理', link: '/dist/interfaces/index.MyInterface' },
            { text: '日志管理', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
        {
          text: '系统监控',
          items: [
            { text: '在线用户', link: '/dist/modules' },
            { text: '定时任务', link: '/dist/classes/index.MyClass' },
            { text: '数据监控', link: '/dist/interfaces/index.MyInterface' },
            { text: '服务监控', link: '/dist/interfaces/index.MyInterface' },
            { text: '缓存监控', link: '/dist/interfaces/index.MyInterface' },
            { text: '缓存列表', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
        {
          text: '系统工具',
          items: [
            { text: '表单构建', link: '/dist/modules' },
            { text: '代码生成', link: '/dist/classes/index.MyClass' },
            { text: '系统接口', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
      ],
      '/pages/logs/': [
        {
          text: '版本日志',
          items: [
            { text: 'Version 1.0.0', link: '/dist/modules' },
            { text: 'Version 2.0.0', link: '/dist/classes/index.MyClass' },
            { text: 'Version 3.0.0', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
      ],
      '/configs/': [
        {
          text: '环境搭建',
          items: [
            { text: '环境配置', link: '/configs/env/config' },
            { text: '项目创建', link: '/configs/env/project' },
            { text: '请求配置', link: '/dist/classes/index.MyClass' },
            { text: '插件配置', link: '/dist/classes/index.MyClass' },
            { text: '打包配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '其他配置', link: '/dist/modules' },
          ],
        },
        {
          text: '开发测试',
          items: [
            { text: '插件配置', link: '/dist/classes/index.MyClass' },
            { text: '打包配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '其他配置', link: '/dist/modules' },
          ],
        },
        {
          text: '运维部署',
          items: [
            { text: '插件配置', link: '/dist/classes/index.MyClass' },
            { text: '打包配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '其他配置', link: '/dist/modules' },
          ],
        },
      ],
      '/pages/components/': [
        {
          text: '插件',
          items: [
            { text: '插件配置', link: '/dist/classes/index.MyClass' },
            { text: '打包配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '其他配置', link: '/dist/modules' },
          ],
        },
        {
          text: '组件',
          items: [
            { text: '插件配置', link: '/dist/classes/index.MyClass' },
            { text: '打包配置', link: '/dist/interfaces/index.MyInterface' },
            { text: '其他配置', link: '/dist/modules' },
          ],
        }
      ],
      '/dist/': [
        {
          text: 'API 文档',
          items: [
            { text: 'Entry', link: '/dist/modules' },
            { text: 'Class', link: '/dist/classes/index.MyClass' },
            { text: 'Interface', link: '/dist/interfaces/index.MyInterface' },
          ],
        },
      ],
    },
    // sidebar: [
          // {
          //   text: "Button 按钮",
          //   link: "/components/button/"
          // },
          // {
          //   text: "Icon 图标",
          //   link: "/components/icon/"
          // },
    // ],
    socialLinks: [
      { icon: "github", link: "https://gitee.com/geeksdidi" },
      // You can also add custom icons by passing SVG as string:
      {
        icon: {
          svg: '<svg role="img" viewBox="0 0 24 24" xmlns="SVG namespace"><title>Dribbble</title><path d="M12...6.38z"/></svg>',
        },
        link: "...",
      },
    ],
    docFooter: {
      prev: 'Pagina prior',
      next: 'Proxima pagina'
    },
    footer: {
      message: 'Released under the MIT License.',
      copyright: 'Copyright © 2022-present MicroDesign UI'
    }
  },
  // markdown: {
  //   config: (md) => {
  //     md.use(demoBlockPlugin)
  //   },
  //   lineNumbers: true
  // }
 })
export default config
  